import java.util.List;

public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(10);
        myArrayList.add(12);
        myArrayList.add(1,18);
        try{
            myArrayList.add(0,10);
        }catch (PosWrongfulException e){
            e.printStackTrace();
        }
        myArrayList.display();
        System.out.println(myArrayList.contains(10));
        System.out.println(myArrayList.contains(12));
        System.out.println(myArrayList.contains(1));
    }
}
